package com.bookmngsys.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@Entity
public class BorrowHistory {
    //书的的isbn
    private String isbn;
    //书的bookId
    private Integer bookId;
    //借书用户id
    private Integer readerId;
    //结束日期
    private Long borrowDate;
    //归还日期
    private Long returnDate;
    //是否归还
    private Boolean isReturned;
    @Id
    private Integer id;
    //实际还书日期，默认为null
    private Long realReturnDate;
}
